import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


import '../AppConfig/Config.dart';

class ServiceNotification extends StatefulWidget {
  const ServiceNotification({super.key});

  @override
  State<ServiceNotification> createState() => _ServiceNotificationState();
}

class _ServiceNotificationState extends State<ServiceNotification> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: Text("服务通知",style: TextStyle(color: Colors.black,fontWeight: FontWeight.w300,fontSize: 16.sp),),
        centerTitle: true,
      ),
      body:ListView.builder(
    itemCount:3 ,
    itemBuilder: (context, index) {
    return Container(
      margin: EdgeInsets.only(top: 8.h,left: 10.w,right: 10.w),
      padding: EdgeInsets.only(left: 15.w,top: 15.h,right: 10.w,bottom: 10.h),
      decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.all(Radius.circular(10))),
      child: Column(
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Row(
                children: [
                  Icon(Icons.article,color: MyColors.authTipColor,),
                  SizedBox(width: 8.w,),
                  Text("课堂公告",style: TextStyle(color: Colors.black,fontSize: 16.sp),),
                ],
              ),
              Text("星期二 15:25",style: TextStyle(color: MyColors.textColor,fontSize: 13.sp),),
            ],
          ),
          SizedBox(height: 16.h,),
          Text("好货源怎么接不了？可能是因为您的证件过期了！",style: TextStyle(color: MyColors.textColor,),),
          SizedBox(height: 16.h,),
          Divider(height: 1.h,color: MyColors.backgreyColor,),
          SizedBox(height: 8.h,),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text("查看详情",style: TextStyle(color: MyColors.authTipColor),),
              Icon(Icons.arrow_forward_ios,color: MyColors.authTipColor,size: 20,),
            ],
          )
        ],
      ),
    );}),
    );
  }
}
